Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-03-22 06:53 PM
Hello,
I have an action that launches the command prompt and then executes the Windows net use command to map a drive. The password was updated to contain special characters and the command now throws a "The filename, directory name, or volume label syntax is incorrect" error. I believe the error is due to the special charters contained in the password. Does anyone have any ideas on how to escape them or another way to to execute the net use command?
net use a:\\share /user:user password
If I run the command in the "Run" window it works fine, so there is something about it that CMD does not like. If necessary, I could develop a new object to use the Run window. Please let me know your thoughts.
------------------------------
Dan Svantner
Application Architect
US Steel
America/New_York
------------------------------
I have an action that launches the command prompt and then executes the Windows net use command to map a drive. The password was updated to contain special characters and the command now throws a "The filename, directory name, or volume label syntax is incorrect" error. I believe the error is due to the special charters contained in the password. Does anyone have any ideas on how to escape them or another way to to execute the net use command?
net use a:\\share /user:user password
If I run the command in the "Run" window it works fine, so there is something about it that CMD does not like. If necessary, I could develop a new object to use the Run window. Please let me know your thoughts.
------------------------------
Dan Svantner
Application Architect
US Steel
America/New_York
------------------------------
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-03-22 07:32 AM
rename files to Map Networkdrive.bprelease Disconnect Drive.bat and DriveMapp.bat
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-03-22 08:43 PM
@Dan Svantner,
Take a look at this article:
https://ss64.com/nt/syntax-esc.html
You may also need to enclose the password in double quotes.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Take a look at this article:
https://ss64.com/nt/syntax-esc.html
You may also need to enclose the password in double quotes.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-03-22 07:27 AM
Hi Dan,
here is a solution i did long back attached are bp release file, and two argument parsed batch scripts.
NB: Exported from bp version 7
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
here is a solution i did long back attached are bp release file, and two argument parsed batch scripts.
NB: Exported from bp version 7
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-03-22 07:32 AM
rename files to Map Networkdrive.bprelease Disconnect Drive.bat and DriveMapp.bat
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
------------------------------
Jerin Jose
Technical Product Owner
EY
Asia/Kolkata
*"If you find this post helpful mark it as best answer, .*
------------------------------
