Any other commands to move that .csv from Powershell ?
Through Get-ChildItem ?
Any other commands to move that .csv from Powershell ?
Through Get-ChildItem ?
I am trying to copy the .csv file from the source folder to destination where copy is not happening..
robocopy "Source Path" "Destination Path" "*.csv"
2018/01/02 08:52:29 ERROR 3 (0x00000003)
Help
@manxam Thanks now it works in command prompt from the .bat file
How to locate and delete the .csv files from the machine ?I need delete all the .csv files from the machine through the help of the Powershell ?
Any suggestions ?
Once deleted the new .csv files will come as entrance and that needs to be copied to the folder
Aim : Delete old .csv files from the machine and copy the new .csv to the new location
@tim_g said in Happy New Year 2018:
Still 2017 for me... how's 2018 looking so far?
Its good to hear the Wishes from every nooks and corners inside Office as well as Outside office.There are many people visited their nearer Gods and Workship starts and then many with new dresses and Party
The same issue like in the powershell how to mention the default or current user in .vbs since the same input (C:\Users\Username\Foldername).Can anyone help on 2018 ?
@lakshmana The $env:USERNAME is not working inside string it seems ?Any suggestions ?
@scottalanmiller Its full of Forest going to workship God
Hi
On 3rd Jan I will be visiting Sabarimala 2nd Time .Will share the experience soon.
Happy New Year for all the members as well as their Families.
This year brings you Wealth and Health.
Happy New Year 2018 from India
@dbeato said in Powershell Default User:
@lakshmana said in Powershell Default User:
@scottalanmiller said in Powershell Default User:
Are you sure that the filename exists?
The files exists inside that folder and before doing this i have mentioned as in .bat but that has to runned in the all the machine means it should get the current user details so only asked for the same which is not working when tried to execute in the powershell
So are you running this via a task or when the user logs in?
This is the powershell which converts into .csv to .xlsx in the machine in the folder mentioned
@black3dynamite said in Powershell Default User:
@lakshmana said in Powershell Default User:
@dbeato said in Powershell Default User:
@black3dynamite said in Powershell Default User:
@lakshmana said in Powershell Default User:
@dbeato said in Powershell Default User:
[string]$file = 'C:$env:UserName\fILENAME'
)Get-Item : Cannot find path 'C:$env:Username\Tickets' because it does not exist.
It should be
'C:\Users\$env:USERNAME\filename'
That's right...
Get-Item : Cannot find path 'C:\Users$env:USERNAME\filename' because it does not exist.
C:\$env:Username\Tickets
should be'C:\Users\$env:USERNAME\Tickets'
I have changed already
@scottalanmiller said in Powershell Default User:
Are you sure that the filename exists?
The files exists inside that folder and before doing this i have mentioned as in .bat but that has to runned in the all the machine means it should get the current user details so only asked for the same which is not working when tried to execute in the powershell
@scottalanmiller Its already there when i am copy pasting its not showing
@dbeato said in Powershell Default User:
@black3dynamite said in Powershell Default User:
@lakshmana said in Powershell Default User:
@dbeato said in Powershell Default User:
[string]$file = 'C:$env:UserName\fILENAME'
)Get-Item : Cannot find path 'C:$env:Username\Tickets' because it does not exist.
It should be
'C:\Users\$env:USERNAME\filename'
That's right...
Get-Item : Cannot find path 'C:\Users$env:USERNAME\filename' because it does not exist.
@dbeato said in Powershell Default User:
[string]$file = 'C:$env:UserName\fILENAME'
)
Get-Item : Cannot find path 'C:$env:Username\Tickets' because it does not exist.