Questions tagged [util.cmd]

used to issue Windows cmd commands and get results.

used to issue Windows cmd commands and get results.

4 questions
1
vote
1 answer

How can i get the current path in .cmd file?

How can i get the current path in .cmd file? I see a ton of people saying oh just use "cd" To get the value of cd , I have to set it first, which i can't as i am making it portable. I wonder if there is any built-in variable which tell the current…
Coding Noob
  • 33
  • 1
  • 7
1
vote
1 answer

Similar to .sh on Windows 7

I'm used to using a Mac, and I've written a program for my Mac that I now need to implement on a PC. On a mac, I run it through a shell file, using the following code: cd ./desktop/Program ./MyProgram ./clearFiles I've tried entering cd…
awerchniak
  • 357
  • 3
  • 16
0
votes
1 answer

How do I pass a directory path with spaces into a .cmd script?

I am trying to pass two arguments into my .cmd script to create a folder for arg1 and define a source dir for arg2. The source dir is "Shared Documents". The problem is that I cannot pass a space or a wildcard into the argument without it stating…
user2654953
  • 221
  • 1
  • 3
  • 11
0
votes
1 answer

Why does this LINQPad Util.Cmd() call fail?

I'm trying to execute the Windows find command from LINQPad but it isn't working and I don't understand why. This is my LINQPad script and I'm executing it in LINQPad as C# Statement(s). string find = @"find ""Processing request to ""…
Steve Crane
  • 4,340
  • 5
  • 40
  • 63